package com.ilancuo.thinkinjava;

import java.util.Date;
import java.util.Properties;

public class Property {
    public static void main(String[] args) {
        System.out.println(new Date());
        Properties properties = System.getProperties();
        properties.list(System.out);

        Runtime runtime = Runtime.getRuntime();
        System.out.println("--- Memory Usage: ---");
        System.out.println("Total Memory: " + runtime.totalMemory() + "\tFree Memory: " + runtime.freeMemory());
    }
}
